


<h1><<公众相关接口>></h1>


<h2>server_time(获取服务器时间)</h2>
<form id="server_time" method="get">
<button onclick="ajaxApi('server_time','api.php?a=server_time')" type="button" name="btn">提交</button>
</form>

<h2>login(POST:用户登录)</h2>
<form id="login" method="post">
user<input name="user" value=""><br>
pass<input name="pass" value=""><br>
<button onclick="ajaxApi('login','api.php?a=login','post')" type="button" name="btn">提交</button>
</form>

<h2>apply(POST:用户申请)</h2>
<form id="apply" method="post">
province<input name="province" value=""><br>
city<input name="city" value=""><br>
area<input name="area" value=""><br>
contact<input name="contact" value=""><br>
mobile<input name="mobile" value=""><br>
diner_num<input name="diner_num" value=""><br>
email<input name="email" value=""><br>
address<input name="address" value=""><br>
need<input name="need" value=""><br>
<button onclick="ajaxApi('apply','api.php?a=apply','post')" type="button" name="btn">提交</button>
</form>


<h2>user_avatar(POST:上传用户头像) 测试中。。。</h2>
<form action="/dou/api.php?a=user_avatar" enctype="multipart/form-data" id="user_avatar" method="post">
usertoken<input name="usertoken" value=""><br>
avatar<input name="avatar" type="file" />
<button type="submit" name="btn">提交</button>
</form>


<h2>user_find_pass(POST:用户找回密码)</h2>
<form id="user_find_pass" method="post">
user_name<input name="user_name" value=""><br>
mobile<input name="mobile" value=""><br>
<button onclick="ajaxApi('user_find_pass','api.php?a=user_find_pass','post')" type="button" name="btn">提交</button>
</form>


<h2>cat_list_son(商品分类列表)</h2>
<form id="cat_list_son" method="get">
parent_id<input name="parent_id" value=""><br>
<button onclick="ajaxApi('cat_list_son','api.php?a=cat_list_son')" type="button" name="btn">提交</button>
</form>

<h2>cat_info(商品分类信息)</h2>
<form id="cat_info" method="get">
cat_id<input name="cat_id" value=""><br>
<button onclick="ajaxApi('cat_info','api.php?a=cat_info')" type="button" name="btn">提交</button>
</form>

<h2>article_info(文章内容)</h2>
<form id="article_info" method="get">
id<input name="id" value=""><br>
<button onclick="ajaxApi('article_info','api.php?a=article_info')" type="button" name="btn">提交</button>
</form>

<h2>page_list_son(页面列表)</h2>
<form id="page_list_son" method="get">
parent_id<input name="parent_id" value=""><br>
<button onclick="ajaxApi('page_list_son','api.php?a=page_list_son')" type="button" name="btn">提交</button>
</form>

<h2>page_info(页面列表)</h2>
<form id="page_info" method="get">
id<input name="id" value=""><br>
<button onclick="ajaxApi('page_info','api.php?a=page_info')" type="button" name="btn">提交</button>
</form>

<h2>region_list_son(省份/城市/地区列表)</h2>
<form id="region_list_son" method="get">
parent_id<input name="parent_id" value=""><br>
<button onclick="ajaxApi('region_list_son','api.php?a=region_list_son')" type="button" name="btn">提交</button>
</form>


<h2>region_info(根据地区id获取信息)</h2>
<form id="region_info" method="get">
province<input name="province" value=""><br>
city<input name="city" value=""><br>
area<input name="area" value=""><br>
<button onclick="ajaxApi('region_info','api.php?a=region_info')" type="button" name="btn">提交</button>
</form>

